package com.example.mq.mqclient;


import lombok.Data;

import java.io.IOException;

@Data
public class ConnectionFactory {
    private String host;
    private int port;

    public  Connection newConnection() throws IOException {
        Connection connection = new Connection(host, port);
        return connection;
    }
}
